layui.config({
    base: './js/modules/' // 设置模块存放目录
});

layui.use(['LDLayout'], function () {
    var LDLayout = layui.LDLayout;
    LDLayout.setBadgeVisible();
});